﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AgencyManagerSystem.Common
{
    public class UserProfile
    {
        //public string UserName { get; set; }
        public int UserId { get; set; }
        public int Domain { get; set; }
        //public int Department { get; set; }
    }
    public class FullUserProfile:UserProfile
    {
        public FullUserProfile() { }
        public FullUserProfile(UserProfile profile)
        {
            this.UserId = profile.UserId;
            this.Domain = profile.Domain;
        }
        public string UserCode { get; set; }
        public UserType Type { get; set; }
        public int Department { get; set; }
        public string UserName { get; set; }
        public int Site { get; set; }
        public string Avatar { get; set; }
    }
    public enum UserType
    {
        Global = 0, Department = 1, SiteOrSupplier = 2, Person = 3
    }
}
